home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
slip
/
sl.shar
/
sl
/
src
/
local
/
Makefile
< prev
next >
Wrap
Makefile
|
1988-04-12
|
1KB
|
44 lines
#
DESTDIR=
CFLAGS= -DMAXHOSTNAMELEN=32 -O
# C programs that live in the current directory and do not need
# explicit make lines.
#
STD= dstaddr slattach
all: ${STD}
${STD}:
cc ${CFLAGS} -o $@ $@.c
install:
-for i in ${STD}; do \
(install $$i ${DESTDIR}/usr/local/etc/$$i); done
clean:
rm -f a.out core *.s *.o
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
rm -f ${STD} ${NSTD}
depend:
cat </dev/null >x.c
for i in ${STD} ${NSTD}; do \
(echo $$i: $$i.c >>makedep; \
/bin/grep '^#[ ]*include' x.c $$i.c | sed \
-e 's,<\(.*\)>,"/usr/include/\1",' \
-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
-e 's/\.c//' >>makedep); done
echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo '$$r makedep' >>eddep
echo 'w' >>eddep
cp Makefile Makefile.bak
ed - Makefile < eddep
rm eddep makedep x.c
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it